package com.mycloud.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * Created by PC on 2019/1/10.
 */
@Component
@Data
@RefreshScope
@ConfigurationProperties("girl")
public class GirlConfig {

    private String name;

    private Integer age;
}
